#!/usr/bin/python
# -*- coding:utf-8 -*-
# @author  : micah
# @time    :  
# @function: 
# @version :

from selenium import webdriver


browser = webdriver.Chrome()
browser.get('https://www.baidu.com')
browser.execute_script('window.open()')
print(browser.switch_to.window(browser.window_handles[1]))
browser.get('https://www.baidu.com')
browser.switch_to.window(browser.window_handles[0])


browser.quit()

